package com.zhijian.wharf.dao;

import com.zhijian.wharf.entity.po.EnvMonitor;
import com.zhijian.wharf.entity.vo.request.EnvMonitorSearchVo;
import com.zhijian.wharf.entity.vo.response.EnvMonitorVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface EnvMonitorMapper {
    int deleteByPrimaryKey(Long id);

    int insert(EnvMonitor record);

    int insertSelective(EnvMonitor record);

    EnvMonitor selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(EnvMonitor record);

    int updateByPrimaryKey(EnvMonitor record);

    /**
     * 查询总数
     *
     * @param envMonitorSearchVo
     * @return
     */
    int count(EnvMonitorSearchVo envMonitorSearchVo);

    /**
     * 查询列表
     *
     * @param envMonitorSearchVo
     * @return
     */
    List<EnvMonitorVo> selectList(EnvMonitorSearchVo envMonitorSearchVo);

    /**
     * 查询单个
     *
     * @param envMonitorSearchVo
     * @return
     */
    EnvMonitorVo selectOne(EnvMonitorSearchVo envMonitorSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    EnvMonitorVo selectVoById(Long id);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param envMonitorSearchVo
     * @return
     */
    int deleteByCondition(EnvMonitorSearchVo envMonitorSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<EnvMonitor> entities);
}